package com.handpay.nocardpay.baselibrary.pay.widget;

import android.content.Context;

import com.handpay.nocardpay.baselibrary.R;
import com.handpay.nocardpay.baselibrary.commbase.model.adapter.BaseListViewAdapter;
import com.handpay.nocardpay.baselibrary.commbase.model.adapter.BaseListViewViewHolder;
import com.handpay.nocardpay.baselibrary.pay.unipay.model.bean.MerchantTypeListBean;

/**
 * Created by sxshi on 2017/7/12.
 * 商户类型Adapter
 */

public class MerchantTypeAdapter extends BaseListViewAdapter<MerchantTypeListBean.ListBean> {

    public MerchantTypeAdapter(Context context) {
        super(context);
    }

    @Override
    public int getLayoutId(int postion) {
        return R.layout.item_merchant_type;
    }

    @Override
    public void convert(BaseListViewViewHolder holder, MerchantTypeListBean.ListBean merchantType, int position) {
        holder.setText(R.id.tv_merchanName, merchantType.getMerchClassName());
    }

}
